home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / perl / sprite / RCS / config_h.SH,v < prev    next >
Encoding:
Text File  |  1991-11-14  |  24.8 KB  |  892 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.2
  10. date     91.11.14.12.52.20;  author jhh;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     91.11.14.11.03.06;  author jhh;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @don't use vfork on sprite (yet)
  27. @
  28. text
  29. @: make config.h.SH
  30. case $CONFIG in
  31. '')
  32.     if test ! -f config.sh; then
  33.     ln ../config.sh . || \
  34.     ln ../../config.sh . || \
  35.     ln ../../../config.sh . || \
  36.     (echo "Can't find config.sh."; exit 1)
  37.     echo "Using config.sh from above..."
  38.     fi 2>/dev/null
  39.     . ./config.sh
  40.     ;;
  41. esac
  42. echo "Extracting config.h (with variable substitutions)"
  43. sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#undef!'
  44. #ifndef config_h
  45. #define config_h
  46. /* config.h
  47.  * This file was produced by running the config.h.SH script, which
  48.  * gets its values from config.sh, which is generally produced by
  49.  * running Configure.
  50.  *
  51.  * Feel free to modify any of this as the need arises.  Note, however,
  52.  * that running config.h.SH again will wipe out any changes you've made.
  53.  * For a more permanent change edit config.sh and rerun config.h.SH.
  54.  */
  55.  /*SUPPRESS 460*/
  56.  
  57.  
  58. /* EUNICE
  59.  *    This symbol, if defined, indicates that the program is being compiled
  60.  *    under the EUNICE package under VMS.  The program will need to handle
  61.  *    things like files that don't go away the first time you unlink them,
  62.  *    due to version numbering.  It will also need to compensate for lack
  63.  *    of a respectable link() command.
  64.  */
  65. /* VMS
  66.  *    This symbol, if defined, indicates that the program is running under
  67.  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  68.  */
  69. #$d_eunice    EUNICE        /**/
  70. #$d_eunice    VMS        /**/
  71.  
  72. /* ALIGNBYTES
  73.  *    This symbol contains the number of bytes required to align a double.
  74.  *    Usual values are 2, 4, and 8.
  75.  */
  76. #define ALIGNBYTES $alignbytes        /**/
  77.  
  78. /* BIN
  79.  *    This symbol holds the name of the directory in which the user wants
  80.  *    to keep publicly executable images for the package in question.  It
  81.  *    is most often a local directory such as /usr/local/bin.
  82.  */
  83. #define BIN "$bin"             /**/
  84.  
  85. /* BYTEORDER
  86.  *    This symbol contains an encoding of the order of bytes in a long.
  87.  *    Usual values (in hex) are 0x1234, 0x4321, 0x2143, 0x3412...
  88.  */
  89. #define BYTEORDER 0x$byteorder        /**/
  90.  
  91. /* CPPSTDIN
  92.  *    This symbol contains the first part of the string which will invoke
  93.  *    the C preprocessor on the standard input and produce to standard
  94.  *    output.     Typical value of "cc -E" or "/lib/cpp".
  95.  */
  96. /* CPPMINUS
  97.  *    This symbol contains the second part of the string which will invoke
  98.  *    the C preprocessor on the standard input and produce to standard
  99.  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  100.  *    to specify standard input, otherwise the value is "".
  101.  */
  102. #define CPPSTDIN "$cppstdin"
  103. #define CPPMINUS "$cppminus"
  104.  
  105. /* HAS_BCMP
  106.  *    This symbol, if defined, indicates that the bcmp routine is available
  107.  *    to compare blocks of memory.  If undefined, use memcmp.  If that's
  108.  *    not available, roll your own.
  109.  */
  110. #$d_bcmp    HAS_BCMP        /**/
  111.  
  112. /* HAS_BCOPY
  113.  *    This symbol, if defined, indicates that the bcopy routine is available
  114.  *    to copy blocks of memory.  Otherwise you should probably use memcpy().
  115.  */
  116. #$d_bcopy    HAS_BCOPY        /**/
  117.  
  118. /* HAS_BZERO
  119.  *    This symbol, if defined, indicates that the bzero routine is available
  120.  *    to zero blocks of memory.  Otherwise you should probably use memset()
  121.  *    or roll your own.
  122.  */
  123. #$d_bzero    HAS_BZERO        /**/
  124.  
  125. /* CASTNEGFLOAT
  126.  *    This symbol, if defined, indicates that this C compiler knows how to
  127.  *    cast negative or large floating point numbers to unsigned longs, ints
  128.  *    and shorts.
  129.  */
  130. /* CASTFLAGS
  131.  *    This symbol contains flags that say what difficulties the compiler
  132.  *    has casting odd floating values to unsigned long:
  133.  *        1 = couldn't cast < 0
  134.  *        2 = couldn't cast >= 0x80000000
  135.  */
  136. #$d_castneg    CASTNEGFLOAT    /**/
  137. #define    CASTFLAGS $castflags    /**/
  138.  
  139. /* CHARSPRINTF
  140.  *    This symbol is defined if this system declares "char *sprintf()" in
  141.  *    stdio.h.  The trend seems to be to declare it as "int sprintf()".  It
  142.  *    is up to the package author to declare sprintf correctly based on the
  143.  *    symbol.
  144.  */
  145. #$d_charsprf    CHARSPRINTF     /**/
  146.  
  147. /* HAS_CHSIZE
  148.  *    This symbol, if defined, indicates that the chsize routine is available
  149.  *    to truncate files.  You might need a -lx to get this routine.
  150.  */
  151. #$d_chsize    HAS_CHSIZE        /**/
  152.  
  153. /* HAS_CRYPT
  154.  *    This symbol, if defined, indicates that the crypt routine is available
  155.  *    to encrypt passwords and the like.
  156.  */
  157. #$d_crypt    HAS_CRYPT        /**/
  158.  
  159. /* CSH
  160.  *    This symbol, if defined, indicates that the C-shell exists.
  161.  *    If defined, contains the full pathname of csh.
  162.  */
  163. #$d_csh CSH "$csh"        /**/
  164.  
  165. /* DOSUID
  166.  *    This symbol, if defined, indicates that the C program should
  167.  *    check the script that it is executing for setuid/setgid bits, and
  168.  *    attempt to emulate setuid/setgid on systems that have disabled
  169.  *    setuid #! scripts because the kernel can't do it securely.
  170.  *    It is up to the package designer to make sure that this emulation
  171.  *    is done securely.  Among other things, it should do an fstat on
  172.  *    the script it just opened to make sure it really is a setuid/setgid
  173.  *    script, it should make sure the arguments passed correspond exactly
  174.  *    to the argument on the #! line, and it should not trust any
  175.  *    subprocesses to which it must pass the filename rather than the
  176.  *    file descriptor of the script to be executed.
  177.  */
  178. #$d_dosuid DOSUID        /**/
  179.  
  180. /* HAS_DUP2
  181.  *    This symbol, if defined, indicates that the dup2 routine is available
  182.  *    to dup file descriptors.  Otherwise you should use dup().
  183.  */
  184. #$d_dup2    HAS_DUP2        /**/
  185.  
  186. /* HAS_FCHMOD
  187.  *    This symbol, if defined, indicates that the fchmod routine is available
  188.  *    to change mode of opened files.  If unavailable, use chmod().
  189.  */
  190. #$d_fchmod    HAS_FCHMOD        /**/
  191.  
  192. /* HAS_FCHOWN
  193.  *    This symbol, if defined, indicates that the fchown routine is available
  194.  *    to change ownership of opened files.  If unavailable, use chown().
  195.  */
  196. #$d_fchown    HAS_FCHOWN        /**/
  197.  
  198. /* HAS_FCNTL
  199.  *    This symbol, if defined, indicates to the C program that
  200.  *    the fcntl() function exists.
  201.  */
  202. #$d_fcntl    HAS_FCNTL        /**/
  203.  
  204. /* FLEXFILENAMES
  205.  *    This symbol, if defined, indicates that the system supports filenames
  206.  *    longer than 14 characters.
  207.  */
  208. #$d_flexfnam    FLEXFILENAMES        /**/
  209.  
  210. /* HAS_FLOCK
  211.  *    This symbol, if defined, indicates that the flock() routine is
  212.  *    available to do file locking.
  213.  */
  214. #$d_flock    HAS_FLOCK        /**/
  215.  
  216. /* HAS_GETGROUPS
  217.  *    This symbol, if defined, indicates that the getgroups() routine is
  218.  *    available to get the list of process groups.  If unavailable, multiple
  219.  *    groups are probably not supported.
  220.  */
  221. #$d_getgrps    HAS_GETGROUPS        /**/
  222.  
  223. /* HAS_GETHOSTENT
  224.  *    This symbol, if defined, indicates that the gethostent() routine is
  225.  *    available to lookup host names in some data base or other.
  226.  */
  227. #$d_gethent    HAS_GETHOSTENT        /**/
  228.  
  229. /* HAS_GETPGRP
  230.  *    This symbol, if defined, indicates that the getpgrp() routine is
  231.  *    available to get the current process group.
  232.  */
  233. #$d_getpgrp    HAS_GETPGRP        /**/
  234.  
  235. /* HAS_GETPGRP2
  236.  *    This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
  237.  *    routine is available to get the current process group.
  238.  */
  239. #$d_getpgrp2    HAS_GETPGRP2        /**/
  240.  
  241. /* HAS_GETPRIORITY
  242.  *    This symbol, if defined, indicates that the getpriority() routine is
  243.  *    available to get a process's priority.
  244.  */
  245. #$d_getprior    HAS_GETPRIORITY        /**/
  246.  
  247. /* HAS_HTONS
  248.  *    This symbol, if defined, indicates that the htons routine (and friends)
  249.  *    are available to do network order byte swapping.
  250.  */
  251. /* HAS_HTONL
  252.  *    This symbol, if defined, indicates that the htonl routine (and friends)
  253.  *    are available to do network order byte swapping.
  254.  */
  255. /* HAS_NTOHS
  256.  *    This symbol, if defined, indicates that the ntohs routine (and friends)
  257.  *    are available to do network order byte swapping.
  258.  */
  259. /* HAS_NTOHL
  260.  *    This symbol, if defined, indicates that the ntohl routine (and friends)
  261.  *    are available to do network order byte swapping.
  262.  */
  263. #$d_htonl    HAS_HTONS    /**/
  264. #$d_htonl    HAS_HTONL    /**/
  265. #$d_htonl    HAS_NTOHS    /**/
  266. #$d_htonl    HAS_NTOHL    /**/
  267.  
  268. /* index
  269.  *    This preprocessor symbol is defined, along with rindex, if the system
  270.  *    uses the strchr and strrchr routines instead.
  271.  */
  272. /* rindex
  273.  *    This preprocessor symbol is defined, along with index, if the system
  274.  *    uses the strchr and strrchr routines instead.
  275.  */
  276. #$d_index    index strchr    /* cultural */
  277. #$d_index    rindex strrchr    /*  differences? */
  278.  
  279. /* HAS_KILLPG
  280.  *    This symbol, if defined, indicates that the killpg routine is available
  281.  *    to kill process groups.  If unavailable, you probably should use kill
  282.  *    with a negative process number.
  283.  */
  284. #$d_killpg    HAS_KILLPG        /**/
  285.  
  286. /* HAS_LSTAT
  287.  *    This symbol, if defined, indicates that the lstat() routine is
  288.  *    available to stat symbolic links.
  289.  */
  290. #$d_lstat    HAS_LSTAT        /**/
  291.  
  292. /* HAS_MEMCMP
  293.  *    This symbol, if defined, indicates that the memcmp routine is available
  294.  *    to compare blocks of memory.  If undefined, roll your own.
  295.  */
  296. #$d_memcmp    HAS_MEMCMP        /**/
  297.  
  298. /* HAS_MEMCPY
  299.  *    This symbol, if defined, indicates that the memcpy routine is available
  300.  *    to copy blocks of memory.  Otherwise you should probably use bcopy().
  301.  *    If neither is defined, roll your own.
  302.  */
  303. #$d_memcpy    HAS_MEMCPY        /**/
  304.  
  305. /* HAS_MKDIR
  306.  *    This symbol, if defined, indicates that the mkdir routine is available
  307.  *    to create directories.  Otherwise you should fork off a new process to
  308.  *    exec /bin/mkdir.
  309.  */
  310. #$d_mkdir    HAS_MKDIR        /**/
  311.  
  312. /* HAS_MSG
  313.  *    This symbol, if defined, indicates that the entire msg*(2) library is
  314.  *    supported.
  315.  */
  316. #$d_msg    HAS_MSG        /**/
  317.  
  318. /* HAS_MSGCTL
  319.  *    This symbol, if defined, indicates that the msgctl() routine is
  320.  *    available to stat symbolic links.
  321.  */
  322. #$d_msgctl    HAS_MSGCTL        /**/
  323.  
  324. /* HAS_MSGGET
  325.  *    This symbol, if defined, indicates that the msgget() routine is
  326.  *    available to stat symbolic links.
  327.  */
  328. #$d_msgget    HAS_MSGGET        /**/
  329.  
  330. /* HAS_MSGRCV
  331.  *    This symbol, if defined, indicates that the msgrcv() routine is
  332.  *    available to stat symbolic links.
  333.  */
  334. #$d_msgrcv    HAS_MSGRCV        /**/
  335.  
  336. /* HAS_MSGSND
  337.  *    This symbol, if defined, indicates that the msgsnd() routine is
  338.  *    available to stat symbolic links.
  339.  */
  340. #$d_msgsnd    HAS_MSGSND        /**/
  341.  
  342. /* HAS_NDBM
  343.  *    This symbol, if defined, indicates that ndbm.h exists and should
  344.  *    be included.
  345.  */
  346. #$d_ndbm    HAS_NDBM        /**/
  347.  
  348. /* HAS_ODBM
  349.  *    This symbol, if defined, indicates that dbm.h exists and should
  350.  *    be included.
  351.  */
  352. #$d_odbm    HAS_ODBM        /**/
  353.  
  354. /* HAS_OPEN3
  355.  *    This manifest constant lets the C program know that the three
  356.  *    argument form of open(2) is available.
  357.  */
  358. #$d_open3    HAS_OPEN3        /**/
  359.  
  360. /* HAS_READDIR
  361.  *    This symbol, if defined, indicates that the readdir routine is available
  362.  *    from the C library to read directories.
  363.  */
  364. #$d_readdir    HAS_READDIR        /**/
  365.  
  366. /* HAS_RENAME
  367.  *    This symbol, if defined, indicates that the rename routine is available
  368.  *    to rename files.  Otherwise you should do the unlink(), link(), unlink()
  369.  *    trick.
  370.  */
  371. #$d_rename    HAS_RENAME        /**/
  372.  
  373. /* HAS_RMDIR
  374.  *    This symbol, if defined, indicates that the rmdir routine is available
  375.  *    to remove directories.  Otherwise you should fork off a new process to
  376.  *    exec /bin/rmdir.
  377.  */
  378. #$d_rmdir    HAS_RMDIR        /**/
  379.  
  380. /* HAS_SELECT
  381.  *    This symbol, if defined, indicates that the select() subroutine
  382.  *    exists.
  383.  */
  384. #$d_select    HAS_SELECT    /**/
  385.  
  386. /* HAS_SEM
  387.  *    This symbol, if defined, indicates that the entire sem*(2) library is
  388.  *    supported.
  389.  */
  390. #$d_sem    HAS_SEM        /**/
  391.  
  392. /* HAS_SEMCTL
  393.  *    This symbol, if defined, indicates that the semctl() routine is
  394.  *    available to stat symbolic links.
  395.  */
  396. #$d_semctl    HAS_SEMCTL        /**/
  397.  
  398. /* HAS_SEMGET
  399.  *    This symbol, if defined, indicates that the semget() routine is
  400.  *    available to stat symbolic links.
  401.  */
  402. #$d_semget    HAS_SEMGET        /**/
  403.  
  404. /* HAS_SEMOP
  405.  *    This symbol, if defined, indicates that the semop() routine is
  406.  *    available to stat symbolic links.
  407.  */
  408. #$d_semop    HAS_SEMOP        /**/
  409.  
  410. /* HAS_SETEGID
  411.  *    This symbol, if defined, indicates that the setegid routine is available
  412.  *    to change the effective gid of the current program.
  413.  */
  414. #$d_setegid    HAS_SETEGID        /**/
  415.  
  416. /* HAS_SETEUID
  417.  *    This symbol, if defined, indicates that the seteuid routine is available
  418.  *    to change the effective uid of the current program.
  419.  */
  420. #$d_seteuid    HAS_SETEUID        /**/
  421.  
  422. /* HAS_SETPGRP
  423.  *    This symbol, if defined, indicates that the setpgrp() routine is
  424.  *    available to set the current process group.
  425.  */
  426. #$d_setpgrp    HAS_SETPGRP        /**/
  427.  
  428. /* HAS_SETPGRP2
  429.  *    This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
  430.  *    routine is available to set the current process group.
  431.  */
  432. #$d_setpgrp2    HAS_SETPGRP2        /**/
  433.  
  434. /* HAS_SETPRIORITY
  435.  *    This symbol, if defined, indicates that the setpriority() routine is
  436.  *    available to set a process's priority.
  437.  */
  438. #$d_setprior    HAS_SETPRIORITY        /**/
  439.  
  440. /* HAS_SETREGID
  441.  *    This symbol, if defined, indicates that the setregid routine is
  442.  *    available to change the real and effective gid of the current program.
  443.  */
  444. /* HAS_SETRESGID
  445.  *    This symbol, if defined, indicates that the setresgid routine is
  446.  *    available to change the real, effective and saved gid of the current
  447.  *    program.
  448.  */
  449. #$d_setregid    HAS_SETREGID        /**/
  450. #$d_setresgid    HAS_SETRESGID        /**/
  451.  
  452. /* HAS_SETREUID
  453.  *    This symbol, if defined, indicates that the setreuid routine is
  454.  *    available to change the real and effective uid of the current program.
  455.  */
  456. /* HAS_SETRESUID
  457.  *    This symbol, if defined, indicates that the setresuid routine is
  458.  *    available to change the real, effective and saved uid of the current
  459.  *    program.
  460.  */
  461. #$d_setreuid    HAS_SETREUID        /**/
  462. #$d_setresuid    HAS_SETRESUID        /**/
  463.  
  464. /* HAS_SETRGID
  465.  *    This symbol, if defined, indicates that the setrgid routine is available
  466.  *    to change the real gid of the current program.
  467.  */
  468. #$d_setrgid    HAS_SETRGID        /**/
  469.  
  470. /* HAS_SETRUID
  471.  *    This symbol, if defined, indicates that the setruid routine is available
  472.  *    to change the real uid of the current program.
  473.  */
  474. #$d_setruid    HAS_SETRUID        /**/
  475.  
  476. /* HAS_SHM
  477.  *    This symbol, if defined, indicates that the entire shm*(2) library is
  478.  *    supported.
  479.  */
  480. #$d_shm    HAS_SHM        /**/
  481.  
  482. /* HAS_SHMAT
  483.  *    This symbol, if defined, indicates that the shmat() routine is
  484.  *    available to stat symbolic links.
  485.  */
  486. /* VOID_SHMAT
  487.  *    This symbol, if defined, indicates that the shmat() routine
  488.  *    returns a pointer of type void*.
  489.  */
  490. #$d_shmat    HAS_SHMAT        /**/
  491.  
  492. #$d_voidshmat    VOIDSHMAT        /**/
  493.  
  494. /* HAS_SHMCTL
  495.  *    This symbol, if defined, indicates that the shmctl() routine is
  496.  *    available to stat symbolic links.
  497.  */
  498. #$d_shmctl    HAS_SHMCTL        /**/
  499.  
  500. /* HAS_SHMDT
  501.  *    This symbol, if defined, indicates that the shmdt() routine is
  502.  *    available to stat symbolic links.
  503.  */
  504. #$d_shmdt    HAS_SHMDT        /**/
  505.  
  506. /* HAS_SHMGET
  507.  *    This symbol, if defined, indicates that the shmget() routine is
  508.  *    available to stat symbolic links.
  509.  */
  510. #$d_shmget    HAS_SHMGET        /**/
  511.  
  512. /* HAS_SOCKET
  513.  *    This symbol, if defined, indicates that the BSD socket interface is
  514.  *    supported.
  515.  */
  516. /* HAS_SOCKETPAIR
  517.  *    This symbol, if defined, indicates that the BSD socketpair call is
  518.  *    supported.
  519.  */
  520. /* OLDSOCKET
  521.  *    This symbol, if defined, indicates that the 4.1c BSD socket interface
  522.  *    is supported instead of the 4.2/4.3 BSD socket interface.
  523.  */
  524. #$d_socket    HAS_SOCKET        /**/
  525.  
  526. #$d_sockpair    HAS_SOCKETPAIR    /**/
  527.  
  528. #$d_oldsock    OLDSOCKET    /**/
  529.  
  530. /* STATBLOCKS
  531.  *    This symbol is defined if this system has a stat structure declaring
  532.  *    st_blksize and st_blocks.
  533.  */
  534. #$d_statblks    STATBLOCKS     /**/
  535.  
  536. /* STDSTDIO
  537.  *    This symbol is defined if this system has a FILE structure declaring
  538.  *    _ptr and _cnt in stdio.h.
  539.  */
  540. #$d_stdstdio    STDSTDIO     /**/
  541.  
  542. /* STRUCTCOPY
  543.  *    This symbol, if defined, indicates that this C compiler knows how
  544.  *    to copy structures.  If undefined, you'll need to use a block copy
  545.  *    routine of some sort instead.
  546.  */
  547. #$d_strctcpy    STRUCTCOPY    /**/
  548.  
  549. /* HAS_STRERROR
  550.  *    This symbol, if defined, indicates that the strerror() routine is
  551.  *    available to translate error numbers to strings.
  552.  */
  553. #$d_strerror    HAS_STRERROR        /**/
  554.  
  555. /* HAS_SYMLINK
  556.  *    This symbol, if defined, indicates that the symlink routine is available
  557.  *    to create symbolic links.
  558.  */
  559. #$d_symlink    HAS_SYMLINK        /**/
  560.  
  561. /* HAS_SYSCALL
  562.  *    This symbol, if defined, indicates that the syscall routine is available
  563.  *    to call arbitrary system calls.  If undefined, that's tough.
  564.  */
  565. #$d_syscall    HAS_SYSCALL        /**/
  566.  
  567. /* HAS_TRUNCATE
  568.  *    This symbol, if defined, indicates that the truncate routine is
  569.  *    available to truncate files.
  570.  */
  571. #$d_truncate    HAS_TRUNCATE        /**/
  572.  
  573. /* HAS_VFORK
  574.  *    This symbol, if defined, indicates that vfork() exists.
  575.  */
  576. #undef    HAS_VFORK    /**/
  577.  
  578. /* VOIDSIG
  579.  *    This symbol is defined if this system declares "void (*signal())()" in
  580.  *    signal.h.  The old way was to declare it as "int (*signal())()".  It
  581.  *    is up to the package author to declare things correctly based on the
  582.  *    symbol.
  583.  */
  584. /* TO_SIGNAL
  585.  *    This symbol's value is either "void" or "int", corresponding to the
  586.  *    appropriate return "type" of a signal handler.  Thus, one can declare
  587.  *    a signal handler using "TO_SIGNAL (*handler())()", and define the
  588.  *    handler using "TO_SIGNAL handler(sig)".
  589.  */
  590. #$d_voidsig    VOIDSIG     /**/
  591. #$define    TO_SIGNAL    $d_tosignal     /**/
  592.  
  593. /* HASVOLATILE
  594.  *    This symbol, if defined, indicates that this C compiler knows about
  595.  *    the volatile declaration.
  596.  */
  597. #$d_volatile    HASVOLATILE    /**/
  598.  
  599. /* HAS_VPRINTF
  600.  *    This symbol, if defined, indicates that the vprintf routine is available
  601.  *    to printf with a pointer to an argument list.  If unavailable, you
  602.  *    may need to write your own, probably in terms of _doprnt().
  603.  */
  604. /* CHARVSPRINTF
  605.  *    This symbol is defined if this system has vsprintf() returning type
  606.  *    (char*).  The trend seems to be to declare it as "int vsprintf()".  It
  607.  *    is up to the package author to declare vsprintf correctly based on the
  608.  *    symbol.
  609.  */
  610. #$d_vprintf    HAS_VPRINTF    /**/
  611. #$d_charvspr    CHARVSPRINTF     /**/
  612.  
  613. /* HAS_WAIT4
  614.  *    This symbol, if defined, indicates that wait4() exists.
  615.  */
  616. #$d_wait4    HAS_WAIT4    /**/
  617.  
  618. /* HAS_WAITPID
  619.  *    This symbol, if defined, indicates that waitpid() exists.
  620.  */
  621. #$d_waitpid    HAS_WAITPID    /**/
  622.  
  623. /* GIDTYPE
  624.  *    This symbol has a value like gid_t, int, ushort, or whatever type is
  625.  *    used to declare group ids in the kernel.
  626.  */
  627. #define GIDTYPE $gidtype        /**/
  628.  
  629. /* GROUPSTYPE
  630.  *    This symbol has a value like gid_t, int, ushort, or whatever type is
  631.  *    used in the return value of getgroups().
  632.  */
  633. #define GROUPSTYPE $groupstype        /**/
  634.  
  635. /* I_FCNTL
  636.  *    This manifest constant tells the C program to include <fcntl.h>.
  637.  */
  638. #$i_fcntl    I_FCNTL    /**/
  639.  
  640. /* I_GDBM
  641.  *    This symbol, if defined, indicates that gdbm.h exists and should
  642.  *    be included.
  643.  */
  644. #$i_gdbm    I_GDBM        /**/
  645.  
  646. /* I_GRP
  647.  *    This symbol, if defined, indicates to the C program that it should
  648.  *    include grp.h.
  649.  */
  650. #$i_grp    I_GRP        /**/
  651.  
  652. /* I_NETINET_IN
  653.  *    This symbol, if defined, indicates to the C program that it should
  654.  *    include netinet/in.h.
  655.  */
  656. /* I_SYS_IN
  657.  *    This symbol, if defined, indicates to the C program that it should
  658.  *    include sys/in.h.
  659.  */
  660. #$i_niin    I_NETINET_IN        /**/
  661. #$i_sysin    I_SYS_IN        /**/
  662.  
  663. /* I_PWD
  664.  *    This symbol, if defined, indicates to the C program that it should
  665.  *    include pwd.h.
  666.  */
  667. /* PWQUOTA
  668.  *    This symbol, if defined, indicates to the C program that struct passwd
  669.  *    contains pw_quota.
  670.  */
  671. /* PWAGE
  672.  *    This symbol, if defined, indicates to the C program that struct passwd
  673.  *    contains pw_age.
  674.  */
  675. /* PWCHANGE
  676.  *    This symbol, if defined, indicates to the C program that struct passwd
  677.  *    contains pw_change.
  678.  */
  679. /* PWCLASS
  680.  *    This symbol, if defined, indicates to the C program that struct passwd
  681.  *    contains pw_class.
  682.  */
  683. /* PWEXPIRE
  684.  *    This symbol, if defined, indicates to the C program that struct passwd
  685.  *    contains pw_expire.
  686.  */
  687. /* PWCOMMENT
  688.  *    This symbol, if defined, indicates to the C program that struct passwd
  689.  *    contains pw_comment.
  690.  */
  691. #$i_pwd    I_PWD        /**/
  692. #$d_pwquota    PWQUOTA        /**/
  693. #$d_pwage    PWAGE        /**/
  694. #$d_pwchange    PWCHANGE    /**/
  695. #$d_pwclass    PWCLASS        /**/
  696. #$d_pwexpire    PWEXPIRE    /**/
  697. #$d_pwcomment    PWCOMMENT    /**/
  698.  
  699. /* I_SYS_FILE
  700.  *    This manifest constant tells the C program to include <sys/file.h>.
  701.  */
  702. #$i_sys_file    I_SYS_FILE    /**/
  703.  
  704. /* I_SYSIOCTL
  705.  *    This symbol, if defined, indicates that sys/ioctl.h exists and should
  706.  *    be included.
  707.  */
  708. #$i_sysioctl    I_SYSIOCTL        /**/
  709.  
  710. /* I_TIME
  711.  *    This symbol is defined if the program should include <time.h>.
  712.  */
  713. /* I_SYS_TIME
  714.  *    This symbol is defined if the program should include <sys/time.h>.
  715.  */
  716. /* SYSTIMEKERNEL
  717.  *    This symbol is defined if the program should include <sys/time.h>
  718.  *    with KERNEL defined.
  719.  */
  720. /* I_SYS_SELECT
  721.  *    This symbol is defined if the program should include <sys/select.h>.
  722.  */
  723. #$i_time    I_TIME         /**/
  724. #$i_sys_time    I_SYS_TIME     /**/
  725. #$d_systimekernel    SYSTIMEKERNEL     /**/
  726. #$i_sys_select    I_SYS_SELECT     /**/
  727.  
  728. /* I_UTIME
  729.  *    This symbol, if defined, indicates to the C program that it should
  730.  *    include utime.h.
  731.  */
  732. #$i_utime    I_UTIME        /**/
  733.  
  734. /* I_VARARGS
  735.  *    This symbol, if defined, indicates to the C program that it should
  736.  *    include varargs.h.
  737.  */
  738. #$i_varargs    I_VARARGS        /**/
  739.  
  740. /* I_VFORK
  741.  *    This symbol, if defined, indicates to the C program that it should
  742.  *    include vfork.h.
  743.  */
  744. #$i_vfork    I_VFORK        /**/
  745.  
  746. /* INTSIZE
  747.  *    This symbol contains the size of an int, so that the C preprocessor
  748.  *    can make decisions based on it.
  749.  */
  750. #define INTSIZE $intsize        /**/
  751.  
  752. /* I_DIRENT
  753.  *    This symbol, if defined, indicates that the program should use the
  754.  *    P1003-style directory routines, and include <dirent.h>.
  755.  */
  756. /* I_SYS_DIR
  757.  *    This symbol, if defined, indicates that the program should use the
  758.  *    directory functions by including <sys/dir.h>.
  759.  */
  760. /* I_NDIR
  761.  *    This symbol, if defined, indicates that the program should include the
  762.  *    system's version of ndir.h, rather than the one with this package.
  763.  */
  764. /* I_SYS_NDIR
  765.  *    This symbol, if defined, indicates that the program should include the
  766.  *    system's version of sys/ndir.h, rather than the one with this package.
  767.  */
  768. /* I_MY_DIR
  769.  *    This symbol, if defined, indicates that the program should compile
  770.  *    the ndir.c code provided with the package.
  771.  */
  772. /* DIRNAMLEN
  773.  *    This symbol, if defined, indicates to the C program that the length
  774.  *    of directory entry names is provided by a d_namlen field.  Otherwise
  775.  *    you need to do strlen() on the d_name field.
  776.  */
  777. #$i_dirent    I_DIRENT    /**/
  778. #$i_sys_dir    I_SYS_DIR    /**/
  779. #$i_ndir    I_NDIR        /**/
  780. #$i_sys_ndir    I_SYS_NDIR    /**/
  781. #$i_my_dir    I_MY_DIR    /**/
  782. #$d_dirnamlen    DIRNAMLEN    /**/
  783.  
  784. /* MYMALLOC
  785.  *    This symbol, if defined, indicates that we're using our own malloc.
  786.  */
  787. /* MALLOCPTRTYPE
  788.  *    This symbol defines the kind of ptr returned by malloc and realloc.
  789.  */
  790. #$d_mymalloc MYMALLOC            /**/
  791.  
  792. #define MALLOCPTRTYPE $mallocptrtype         /**/
  793.  
  794.  
  795. /* RANDBITS
  796.  *    This symbol contains the number of bits of random number the rand()
  797.  *    function produces.  Usual values are 15, 16, and 31.
  798.  */
  799. #define RANDBITS $randbits        /**/
  800.  
  801. /* SCRIPTDIR
  802.  *    This symbol holds the name of the directory in which the user wants
  803.  *    to keep publicly executable scripts for the package in question.  It
  804.  *    is often a directory that is mounted across diverse architectures.
  805.  */
  806. #define SCRIPTDIR "$scriptdir"             /**/
  807.  
  808. /* SIG_NAME
  809.  *    This symbol contains an list of signal names in order.
  810.  */
  811. #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`"        /**/
  812.  
  813. /* STDCHAR
  814.  *    This symbol is defined to be the type of char used in stdio.h.
  815.  *    It has the values "unsigned char" or "char".
  816.  */
  817. #define STDCHAR $stdchar    /**/
  818.  
  819. /* UIDTYPE
  820.  *    This symbol has a value like uid_t, int, ushort, or whatever type is
  821.  *    used to declare user ids in the kernel.
  822.  */
  823. #define UIDTYPE $uidtype        /**/
  824.  
  825. /* VOIDHAVE
  826.  *    This symbol indicates how much support of the void type is given by this
  827.  *    compiler.  What various bits mean:
  828.  *
  829.  *        1 = supports declaration of void
  830.  *        2 = supports arrays of pointers to functions returning void
  831.  *        4 = supports comparisons between pointers to void functions and
  832.  *            addresses of void functions
  833.  *
  834.  *    The package designer should define VOIDWANT to indicate the requirements
  835.  *    of the package.  This can be done either by #defining VOIDWANT before
  836.  *    including config.h, or by defining voidwant in Myinit.U.  If the level
  837.  *    of void support necessary is not present, config.h defines void to "int",
  838.  *    VOID to the empty string, and VOIDP to "char *".
  839.  */
  840. /* void
  841.  *    This symbol is used for void casts.  On implementations which support
  842.  *    void appropriately, its value is "void".  Otherwise, its value maps
  843.  *    to "int".
  844.  */
  845. /* VOID
  846.  *    This symbol's value is "void" if the implementation supports void
  847.  *    appropriately.  Otherwise, its value is the empty string.  The primary
  848.  *    use of this symbol is in specifying void parameter lists for function
  849.  *    prototypes.
  850.  */
  851. /* VOIDP
  852.  *    This symbol is used for casting generic pointers.  On implementations
  853.  *    which support void appropriately, its value is "void *".  Otherwise,
  854.  *    its value is "char *".
  855.  */
  856. #ifndef VOIDWANT
  857. #define VOIDWANT $voidwant
  858. #endif
  859. #define VOIDHAVE $voidhave
  860. #if (VOIDHAVE & VOIDWANT) != VOIDWANT
  861. #define void int        /* is void to be avoided? */
  862. #define VOID
  863. #define VOIDP (char *)
  864. #define M_VOID        /* Xenix strikes again */
  865. #else
  866. #define VOID void
  867. #define VOIDP (void *)
  868. #endif
  869.  
  870. /* PRIVLIB
  871.  *    This symbol contains the name of the private library for this package.
  872.  *    The library is private in the sense that it needn't be in anyone's
  873.  *    execution path, but it should be accessible by the world.  The program
  874.  *    should be prepared to do ~ expansion.
  875.  */
  876. #define PRIVLIB "$privlib"        /**/
  877.  
  878. #endif
  879. !GROK!THIS!
  880. @
  881.  
  882.  
  883. 1.1
  884. log
  885. @Initial revision
  886. @
  887. text
  888. @d548 1
  889. a548 1
  890. #$d_vfork    HAS_VFORK    /**/
  891. @
  892.